package fr.idak.spring.tiles.service;

import java.util.List;

import fr.idak.spring.tiles.hibernate.entity.Language;

public interface LanguageService {
	Language createLanguage(Language language);
	Language saveLanguage(Language language);
	Language findLanguageById(Integer languageId);
	List<Language> getAllLanguages();
	void deleteLanguage(Language language);
	List<Language> getLanguageByReleaseDate(String releaseDate);
	/**
	 * Pagination des résultats
	 * @param begin
	 * @param end
	 * @return List<Language>
	 */
	List<Language> getLanguagesByIndex(int begin, int end);
	
	/**
	 * retourne le nombre d'enregistrement
	 * @return int
	 */
	int countRecords();
}
